import java.awt.*;
import javax.swing.*;

public class GUITest extends JFrame{
	/*
	 * constructor
	 */
	public GUITest()
	{
		JPanel mainPane = makeMainPane();
		displayPane("MINDORS TESTPANE", mainPane);
	}
	
	private void displayPane	(String title, JPanel pane)
	{
		JFrame frame = new JFrame(title);
		frame.add(pane);
		frame.pack();
		frame.setVisible(true);
	}

	private JPanel makeMainPane()
	{
		JPanel pane1 = new JPanel();
		JPanel pane2 = new JPanel();
		JPanel pane3 = new JPanel();
		
		JButton b1 = new JButton("1");
		JButton b2 = new JButton("2");
		JButton b3 = new JButton("3");

		pane1.add(b1);
		pane2.add(b2);
		pane3.add(b3);
		
		JPanel mainPane = new JPanel(new GridLayout(1,3));
		mainPane.add(pane1);
		mainPane.add(pane2);
		mainPane.add(pane3);
		
		return mainPane;
	}
	
}
